package com.levine.base_libs;

import android.app.Application;
import android.util.Log;

import com.blankj.utilcode.util.LogUtils;
import com.lzy.okgo.OkGo;

public class Base {
    /**
     * 使用base库需要在主程序appliction里执行一下该方法进行相应的初始化
     */
    public static void init(Application application) {
        //log全局配置
        LogUtils.Config config = LogUtils.getConfig();
        config.setLogSwitch(true);
        config.setConsoleSwitch(true);
        config.setGlobalTag("123log");
        OkGo.getInstance().init(application);
    }
}
